<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<html>
<head>
    <title>left</title>
    <script src="${ctx}/js/tree/MzTreeView11.js" type="text/javascript"></script>
    <style>
        body
        {
            font-size: 9pt;
            margin: 0px;
            font: normal 12px 宋体;
            scrollbar-face-color: #799AE1;
            scrollbar-highlight-color: #799AE1;
            scrollbar-shadow-color: #799AE1;
            scrollbar-darkshadow-color: #799AE1;
            scrollbar-3dlight-color: #799AE1;
            scrollbar-arrow-color: #FFFFFF;
            scrollbar-track-color: #AABFEC;
        }
        A.MzTreeview /* TreeView 链接的基本样式 */
        {
            cursor: hand;
            color: #000080;
            margin-top: 5px;
            padding: 2 1 0 2;
            text-decoration: none;
        }
        A.select /* TreeView 链接被选中时的样式 */
        {
            color: highlighttext;
            background-color: highlight;
        }
    </style>
</head>
<body>
<textarea id="str"></textarea>

  <script type="text/javaScript">
		<!--
        window.tree = new MzTreeView("tree");
        tree.icons["property"] = "property.gif";
        tree.icons["css"] = "collection.gif";
        tree.icons["event"] = "collection.gif";
        tree.icons["book"] = "book.gif";
        tree.iconsExpand["book"] = "bookopen.gif"; //展开时对应的图片
        tree.setIconPath("${ctx}/js/tree/TreeView/"); //可用相对路径
        <s:iterator value="tree">
        tree.nodes["<s:if test="parentId==null" >-1</s:if><s:else>${parentId}</s:else>_${id}"] = "ctrl:true;ctrlName:sc;ctrlChecked:false;text:${nodeName};url:workflow/manage/template.asp";
        </s:iterator>
        tree.setURL("#");
        tree.wordLine = false;
        tree.setTarget("main");
        var str = tree.toString();
        document.write(str);
        document.all.str.value=str;
        //tree.expandAll();
		//-->
    </script>

	
</body>
</html>